#!/bin/sh
### BEGIN INIT INFO
# Provides:           et2011-demo-init
# Required-Start:     $remote_fs $all
# Required-Stop:
# Default-Start:      2 3 4 5
# Default-Stop:       0 6
# Short-Description:  et2011 demo init
### END INIT INFO

exec < /dev/null
exec > /dev/null
exec 2>&1

home_dir=/home/tsunade
et2011_dir=${home_dir}/konoha-et2011
konoha_dir=${home_dir}/konoha

touch /tmp/dtask.log
chmod 666 /tmp/dtask.log
cp ${konoha_dir}/package/konoha.dscript/demo/preprocess.k /tmp/.
cp ${konoha_dir}/package/konoha.dscript/demo/postprocess.k /tmp/.
/usr/local/bin/node ${et2011_dir}/iPodUI/taillog.js /tmp/dtask.log &
/usr/local/bin/konoha ${home_dir}/server.k &
